<script>
if (window.testRunner)
    testRunner.dumpAsText();

document.write(window.location.origin + '<br>');
document.write(document.location.origin + '<br>');
</script>
